package com.aoyy.dao;

import com.aoyy.model.ProductType;
/**==================================================================================
 * <code>IProductTypeDao</code> interface for <code>ProductType</code> DAO
 * @author Administrator
 * @date 2017-07-13
 * ================================================================================== */
public interface IProductTypeDao extends IBaseDao<ProductType> {
  /**==========================================================================================================
   * To check <code>productType</code> existing in DB or not, if exists, return false, otherwise return  true. 
   * @param productType
   * @param operation, its value is 0 while adding productType, but its value is 1 while editing productType.
   * @return
   * ==========================================================================================================
   */
  Boolean isUniqueProductType(ProductType productType, Integer operation);
}
 